home *** CD-ROM | disk | FTP | other *** search
/ Canadian Geographic Explorer / Canadian Geographic Explorer.iso / pc / riddler.dxr / 00019_Num Players Key Script.ls < prev    next >
Encoding:
Text File  |  1996-10-03  |  394 b   |  16 lines

  1. on exitFrame
  2.   global gMusicChannel, gPathToSound, fileDelimiter
  3.   if not soundBusy(gMusicChannel) then
  4.     sound playFile gMusicChannel, gPathToSound & "music" & fileDelimiter & "playagan.aif"
  5.   end if
  6. end
  7.  
  8. on keyDown
  9.   global gNumPlayers
  10.   set jKey to the keyPressed
  11.   if (jKey = "1") or (jKey = "2") or (jKey = "3") then
  12.     set gNumPlayers to value(jKey)
  13.     go("Enter Name1")
  14.   end if
  15. end
  16.